/**
 * @(#)MonitorDownloadTotal.java 2017年3月1日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.domian.monitor;


import java.text.DecimalFormat;

import org.jsbd.boss.annotation.ExportExcelAnnotation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * TODO 请加入本类的说明
 * @author <a href="mailto:zhouchao@xingbook.com" >周超</a>
 * @version 1.0.0
 */
public class MonitorDownloadTotal extends MonitorColor{
	public static final Logger LOGGER = LoggerFactory.getLogger(MonitorDownloadTotal.class);

	@ExportExcelAnnotation(index = 1)
	private String name;
	private Double flowSize;
	@ExportExcelAnnotation(index = 2)
	private String flowSizeShow;
	@ExportExcelAnnotation(index = 3)
	private String key;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getFlowSizeShow() {
		return flowSizeShow;
	}
	public void setFlowSizeShow(String flowSizeShow) {
		this.flowSizeShow = flowSizeShow;
	}
	public Double getFlowSize() {
		return flowSize;
	}
	public void setFlowSize(Double flowSize) {
		this.flowSize = flowSize;
		if(flowSize!=null){
			this.flowSizeShow=new DecimalFormat("#0.00").format(flowSize);
		}
	}
	
}
